package com.xuhuan.demo.pattern.bridge;

/**
 * @author huan.xu
 * @date 2021/10/6 18:54
 * @description 手机
 */
public abstract class Phone {

    private Brand brand;

    public Phone(Brand brand) {
        this.brand = brand;
    }

    /**
     * 打电话
     */
    public void call() {
        this.brand.call();
    }

    /**
     * 开机
     */
    public void open() {
        this.brand.open();
    }

    /**
     * 关机
     */
    public void close() {
        this.brand.close();
    }
}
